home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1999 #1 / Amiga Plus 1999 #1.iso / System-Boost / Sound / tmlg / plugins / source / AudioPlugin_protos.h next >
Encoding:
C/C++ Source or Header  |  1998-08-10  |  1.5 KB  |  46 lines

  1. #ifndef _INCLUDE_AUDIOPLUGIN_PROTOS_H
  2. #define _INCLUDE_AUDIOPLUGIN_PROTOS_H
  3.  
  4. #include <exec/types.h>
  5. #include <pragma/intuition_lib.h>
  6.  
  7.  
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12.  
  13. APTR InitPlugin(PluginData *data, MsgPort *windowport, CxObj *broker); /* use this port as window->user_port!!! */
  14. void QuitPlugin(APTR data);  /* Cleanup before closing plugin */
  15.  
  16. BOOL ShowPlugin(APTR data, MsgPort *port);  /* Show plugins window, if any */
  17. BOOL AboutPlugin(APTR data, MsgPort *port); /*...*/
  18. BOOL PluginPrefs(APTR data, MsgPort *port); /*...*/
  19. void HidePlugin(APTR data);   /* Hide the plugins window, if any */
  20. BOOL HiddenPlugin(APTR data); /* Is plugin main window hidden, TRUE if no window! */
  21.  
  22. BOOL HandleWindowMsg(APTR data, IntuiMessage **); /* called whenever msg arrives at windowport...
  23.                                           not necessarily a msg for this plugin!!!    */
  24. BOOL PluginHandleKey(APTR data, ULONG key);
  25.  
  26. void InitTransformation(APTR data,
  27.     const char *label, ULONG duration, ULONG samplefreq, ULONG channels, ULONG bitrate, ULONG elapsed); /* called before every new song! */
  28. void Transform(APTR data, WORD *left_buffer, WORD *right_buffer, ULONG samples);        /* called with a decoded sample-buffer */
  29. void PluginDisplay(APTR data, const WORD *left_buffer, const WORD *right_buffer, ULONG samples);    /* called with a decoded sample-buffer */
  30. void EndTransformation(APTR data);
  31.  
  32. struct PluginData *GetPluginData(APTR data);
  33.  
  34. void LockPluginGUI(APTR data);
  35. void UnLockPluginGUI(APTR data);
  36.  
  37. void PluginPriority(APTR data, LONG pri);
  38.  
  39.  
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43.  
  44.  
  45. #endif
  46.